package httpx

import (
	"net/http"
)

//ProcessProgress 带进度处理下载流
func ProcessProgress(read ReadFunc, progress ...ProgressFunc) ProcessFunc {
	return Process(func(resp *http.Response) error { return read(ProgressRead(resp.Body, resp.ContentLength, progress...)) })
}
